package com.vshining.cryptoki.jna.pkcs11t;

import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

/**
 * @author Shining Wang <shiningwang@vshining.com>
 */
@SuppressWarnings("unused")
public class CK_KEA_DERIVE_PARAMS extends Structure {
    byte isSender;
    NativeLong ulRandomLen;
    Pointer pRandomA;
    Pointer pRandomB;
    NativeLong ulPublicDataLen;
    Pointer pPublicData;

    @Override
    protected List getFieldOrder() {
        return Arrays.asList(
                "isSender",
                "ulRandomLen",
                "pRandomA",
                "pRandomB",
                "ulPublicDataLen",
                "pPublicData"
        );
    }
}
